package com.ruoyi.treatment.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.treatment.domain.DocTreatment;
import com.ruoyi.treatment.domain.dto.DocTreatmentSubmitDto;
import com.ruoyi.treatment.domain.dto.YaoDanDto;

/**
 * 就诊信息Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
public interface DocTreatmentMapper 
{
    /**
     * 查询就诊信息
     * 
     * @param treatId 就诊信息主键
     * @return 就诊信息
     */
    public DocTreatment selectDocTreatmentByTreatId(Long treatId);

    /**
     * 查询就诊信息列表
     * 
     * @param docTreatment 就诊信息
     * @return 就诊信息集合
     */
    public List<DocTreatment> selectDocTreatmentList(DocTreatment docTreatment);

    /**
     * 新增就诊信息
     * 
     * @param docTreatment 就诊信息
     * @return 结果
     */
    public int insertDocTreatment(DocTreatment docTreatment);

    /**
     * 修改就诊信息
     * 
     * @param docTreatment 就诊信息
     * @return 结果
     */
    public int updateDocTreatment(DocTreatment docTreatment);

    /**
     * 删除就诊信息
     * 
     * @param treatId 就诊信息主键
     * @return 结果
     */
    public int deleteDocTreatmentByTreatId(Long treatId);

    /**
     * 批量删除就诊信息
     * 
     * @param treatIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDocTreatmentByTreatIds(Long[] treatIds);



    /**
     * 添加药品信息到药单中
     *
     */
    void insertMedicineMessager(Map<String, Object> paramMap);

    List<YaoDanDto> selectYaoDanByPrescriptId(String prescriptionId);

    List<DocTreatment> selectDocTreatmentList(DocTreatment docTreatment, Long userId);
}
